package com.coda.mapper;

import com.coda.pojo.UserWordDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户默写单词详细信息
 */
@Mapper
public interface UserWordDetailMapper {

    /**
     * 根据当前用户和单词id，查询默写详细信息
     * @return
     */
    UserWordDetail getuserWordDetail(@Param("currentId") Integer currentId,@Param("wordId") Integer wordId);

    /**
     * 插入详细信息
     * @param userWordDetail
     */
    int insert(UserWordDetail userWordDetail);

    /**
     * 更新详细信息
     */
    int update(UserWordDetail userWordDetail);
}
